﻿using System;
using System.Data;
using System.Collections.Generic;
using DAL;
using System.Text;

namespace BLL
{
    //这样的代码是为了兼容以前的
  public  class MenuBiz
    {
      MenuDao menuDao = new MenuDao();
     
       
      //获取一个账号的菜单
        public DataTable GetOneInfo(string account)
        {
            return menuDao.GetOneInfo(account);
        }
        public bool DeleteOneInfo(string mainMenuID)
        {
            return menuDao.DeleteOneInfo(mainMenuID);
        }
        public DataSet GetAccountMenu(string account)
        {
             return menuDao.GetAccountMenu(account);
        }
      

        public bool GetOneInfoByUrl(string linkUrl,string account)
        { return menuDao.GetOneInfoByUrl(linkUrl,account);
        }
    }
}
